package com.jiyun.twostudio;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan(basePackages = "com.jiyun.twostudio.mapper")
@EnableDiscoveryClient
@EnableFeignClients
@ServletComponentScan
@SpringBootApplication(exclude = MongoAutoConfiguration.class)  //springboot自动装配会自动加载mongo，依赖冲突
public class TwoStudioApplication {
    public static void main(String[] args) {
        SpringApplication.run(TwoStudioApplication.class, args);
    }
}
